package com.hzlj.position.config.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fz.common.base.converter.QueryWrapperConverterPlus;
import com.hzlj.position.config.common.dto.jzJbxxDeviceBindHistory.JzJbxxDeviceBindHistoryQueryParamDTO;
import com.hzlj.position.config.common.dto.jzJbxxDeviceBindHistory.JzJbxxDeviceBindHistoryQueryResultDTO;
import com.hzlj.position.config.common.model.JzJbxxDeviceBindHistory;
import com.hzlj.position.config.mapper.JzJbxxDeviceBindHistoryMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * 设备绑定历史表(JzJbxxDeviceBindHistory)表操作类
 *
 * @author lifh
 * @date 2023-03-30 20:52:50
 */
@Repository
public class JzJbxxDeviceBindHistoryDao extends ServiceImpl<JzJbxxDeviceBindHistoryMapper, JzJbxxDeviceBindHistory> {
    @Resource
    private JzJbxxDeviceBindHistoryMapper jzJbxxDeviceBindHistoryMapper;

    /**
     * 查询列表：不分页
     *
     * @param dto 查询条件
     * @return 对象列表
     */
    public List<JzJbxxDeviceBindHistoryQueryResultDTO> listJzJbxxDeviceBindHistory(JzJbxxDeviceBindHistoryQueryParamDTO dto) {
        return QueryWrapperConverterPlus.of(jzJbxxDeviceBindHistoryMapper)
                .list(JzJbxxDeviceBindHistoryQueryResultDTO.class, dto);
    }
}

